#app {
    .list-root .el-scrollbar__wrap {
        //margin-right: 0 !important;
        overflow: scroll;
    }
    .main-scroll-wrapper-x {
        //margin-left: $sideBarWidth;

        float: right;
        min-height: 100vh;
        width: calc(100vw - 210px);
        //overflow-x: hidden;

        > .el-scrollbar__wrap {
            margin-right: 0 !important;
            overflow: hidden;
        }

        > .el-scrollbar__bar.is-vertical {
            display: none;
        }

        //transition: width .28s;
        //border: 2px solid red;
        box-sizing: border-box;
    }

    .container-inner {
        /* 50= navbar  50  */
        //min-height: calc(100vh - 50px);
        //height: calc(100vh - 50px);
        //height: calc(100vh);

        //background: rgba(240, 20, 20, 0.3);
        //height: calc(100vh - 49px);
        //margin-top: 49px;
        height: calc(100vh);
        width: 100%;
        &.electron-container-inner {
            height: calc(100vh - 20px);
            ::v-deep .app-main, .app-main .orangeRoot, .app-main .orangeRoot .container {
                height: 100%;
            }
            .materials-root .container {
                height: auto !important;
            }
        }
        //background-color: #323642;
    }

    .main-container {
        //min-height: 100%;
        //transition: margin-left .28s;

        background: #323642;
        //background: pink;
        //border: 1px solid red;
        height: 100vh;

        position: relative;
        min-width: 1200px;

        //border: 2px solid pink;
        box-sizing: border-box;
    }

    .sidebar-container {
        transition: width 0.28s;
        width: $sideBarWidth !important;
        background-color: $menuBg;
        height: 100%;
        font-size: 0px;
        z-index: 1001;
        overflow: hidden;

        // reset element-ui css
        .horizontal-collapse-transition {
            transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
        }

        .scrollbar-wrapper {
            overflow-x: hidden !important;
        }

        .el-scrollbar__bar.is-vertical {
            right: 0px;
        }

        .el-scrollbar {
            height: 100%;
        }

        &.has-logo {
            .el-scrollbar {
                //height: calc(100% - 50px);
                height: calc(100%);
            }
        }

        .is-horizontal {
            display: none;
        }

        a {
            display: inline-block;
            width: 100%;
            overflow: hidden;
        }

        .svg-icon {
            margin-right: 16px;
        }

        .el-menu {
            border: none;
            height: 100%;
            width: 100% !important;
        }

        // menu hover
        .submenu-title-noDropdown,
        .el-submenu__title {
            &:hover {
                background-color: $menuHover !important;
            }
        }

        .is-active > .el-submenu__title {
            color: $subMenuActiveText !important;
        }

        & .nest-menu .el-submenu > .el-submenu__title,
        & .el-submenu .el-menu-item {
            min-width: $sideBarWidth !important;
            background-color: $subMenuBg !important;

            &:hover {
                background-color: $subMenuHover !important;
            }
        }
    }

    .hideSidebar {
        .sidebar-container {
            width: 48px !important;
        }

        .main-scroll-wrapper-x {
            //transition: width .28s;
            width: calc(100vw - 48px);
        }

        .submenu-title-noDropdown {
            padding: 0 !important;
            position: relative;
            text-align: center;

            .el-tooltip {
                padding: 0 !important;

                .svg-icon {
                    margin-left: 10px;
                }
            }
        }

        .el-submenu {
            overflow: hidden;

            & > .el-submenu__title {
                padding: 0 !important;

                .svg-icon {
                    margin-left: 20px;
                }

                .el-submenu__icon-arrow {
                    display: none;
                }
            }
        }

        .el-menu--collapse {
            .el-submenu {
                & > .el-submenu__title {
                    & > span {
                        height: 0;
                        width: 0;
                        overflow: hidden;
                        visibility: hidden;
                        display: inline-block;
                    }
                }
            }
        }
    }

    .el-menu--collapse .el-menu .el-submenu {
        min-width: $sideBarWidth !important;
    }

    // mobile responsive
    .mobile {
        .main-container {
            margin-left: 0px;
        }

        .sidebar-container {
            transition: transform .28s;
            width: $sideBarWidth !important;
        }

        &.hideSidebar {
            .sidebar-container {
                pointer-events: none;
                transition-duration: 0.3s;
                transform: translate3d(-$sideBarWidth, 0, 0);
            }
        }
    }

    .withoutAnimation {

        .main-container,
        .sidebar-container {
            transition: none;
        }
    }
}

// when menu collapsed
.el-menu--vertical {
    & > .el-menu {
        .svg-icon {
            margin-right: 16px;
        }
    }

    .nest-menu .el-submenu > .el-submenu__title,
    .el-menu-item {
        &:hover {
            // you can use $subMenuHover
            background-color: $menuHover !important;
        }
    }

    // the scroll bar appears when the subMenu is too long
    > .el-menu--popup {
        max-height: 100vh;
        overflow-y: auto;

        &::-webkit-scrollbar-track-piece {
            background: #d3dce6;
        }

        &::-webkit-scrollbar {
            width: 6px;
        }

        &::-webkit-scrollbar-thumb {
            background: #99a9bf;
            border-radius: 20px;
        }
    }
}

.el-slider.sc-silder {
    position: absolute;
    bottom: -2px;
    width: 100%;
    height: 4px;
    .el-slider__runway {
        height: 2px;
        margin: 0;
        .el-slider__bar {
            transition: 0.3s;
            height: 2px;
            border-radius: 2px;
        }
        .el-slider__button-wrapper{
            display: none;
            // .el-slider__button {
            //     display: none;
            // }
        }
    }
}